package com.lsk.internalcommon.constant;

public enum CommonStatusEnum {

    /**
     * 1000-1099 验证码错误提示
     */
    VERIFICATION_CODE_NOT_EXIST(1001,"验证码不存在"),
    VERIFICATION_CODE_ERROR(1002,"验证码不正确"),

    /**
     * 1100-1199  token错误提示
     */
    TOKEN_ERROR(1199,"token解析错误"),

    /**
     * 1200-1299  计价规则相关：用户不存在
     */
    PASSENGER_NOT_EXIT(1299,"用户不存在"),
    /**
     * 1300-1399  计价规则相关：计价规则不存在
     */
    PRICE_RULE_EXIT(1300,"计价规则已存在"),
    PRICE_RULE_NOT_EXIT(1301,"计价规则不存在"),
    PRICE_RULE_NOT_EDIT(1302,"计价规则没有变化"),
    PRICE_RULE_CHANGED(1303,"计价规则有变化"),

    MAP_DISTRICT_ERROR(1400,"请求地图错误"),


    /**
     * 1500-1599  司机车辆关系相关
     */
    DRIVER_CAR_BIND_NOT_EXISTS(1501,"司机车辆绑定关系不存在"),
    DRIVER_CAR_BIND_EXISTS(1502,"司机车辆绑定关系已存在，请勿重复绑定"),
    DRIVER_BIND_EXISTS(1503,"司机已绑定，请勿重复绑定"),
    CAR_BIND_EXISTS(1504,"车辆已绑定，请勿重复绑定"),
    DRIVER_USER_NOT_EXISTS(1505,"司机不存在"),
    /**
     * 成功
     */
    SUCCESS(1,"success"),

    /**
     * 失败
     */
    FAIL(0,"fail");

    private int code;
    private String value;

    CommonStatusEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
